# -*- coding: utf-8 -*-

# Copyright (c) 2025 Lijiang
# Licensed under the MIT License
# See LICENSE file for details

"""
简洁黑色主题样式定义
"""

def get_dark_style():
    """获取简洁黑色主题样式表"""
    return """
    /* 主窗口和基础组件 */
    QMainWindow {
        background: #2b2b2b;
        color: #ffffff;
        border: none;
    }
    
    QWidget {
        background: transparent;
        color: #ffffff;
        font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
        font-size: 9pt;
    }
    
    /* 分组框 - 简洁边框 */
    QGroupBox {
        font-weight: bold;
        font-size: 10pt;
        border: 1px solid #555555;
        border-radius: 8px;
        margin-top: 15px;
        margin-bottom: 40px;
        padding-top: 15px;
        padding-bottom: 15px;
        background: #333333;
        color: #ffffff;
        spacing: 10px;
    }
    
    QGroupBox::title {
        subcontrol-origin: margin;
        subcontrol-position: top center;
        padding: 0 8px 0 8px;
        color: #ffffff;
        font-weight: bold;
        background: #2b2b2b;
        border-radius: 4px;
    }
    
    /* 按钮 - 简洁设计 */
    QPushButton {
        background: #404040;
        border: 1px solid #666666;
        border-radius: 6px;
        padding: 8px 16px;
        font-weight: normal;
        color: #ffffff;
        font-size: 9pt;
        min-height: 20px;
    }
    
    QPushButton:hover {
        background: #505050;
        border-color: #777777;
        color: #ffffff;
    }
    
    QPushButton:pressed {
        background: #353535;
        border-color: #555555;
    }
    
    QPushButton:disabled {
        background: #2a2a2a;
        border-color: #444444;
        color: #666666;
    }
    
    /* 特殊按钮样式 */
    QPushButton#startButton {
        background: #4a7c59;
        border-color: #5a8c69;
        color: #ffffff;
        font-size: 10pt;
        font-weight: bold;
    }
    
    QPushButton#startButton:hover {
        background: #5a8c69;
        border-color: #6a9c79;
    }
    
    QPushButton#cancelButton {
        background: #7c4a4a;
        border-color: #8c5a5a;
        color: #ffffff;
    }
    
    QPushButton#cancelButton:hover {
        background: #8c5a5a;
        border-color: #9c6a6a;
    }
    
    /* 滑块 - 简洁设计 */
    QSlider::groove:horizontal {
        border: 1px solid #666666;
        height: 8px;
        background: #404040;
        border-radius: 4px;
    }
    
    QSlider::handle:horizontal {
        background: #666666;
        border: 1px solid #888888;
        width: 18px;
        margin: -6px 0;
        border-radius: 9px;
    }
    
    QSlider::handle:horizontal:hover {
        background: #777777;
        border-color: #999999;
    }
    
    QSlider::handle:horizontal:pressed {
        background: #555555;
        border-color: #777777;
    }
    
    /* 进度条 - 简洁设计 */
    QProgressBar {
        border: 1px solid #666666;
        border-radius: 6px;
        text-align: center;
        background: #404040;
        color: #ffffff;
        font-weight: normal;
        font-size: 9pt;
    }
    
    QProgressBar::chunk {
        background: #666666;
        border-radius: 5px;
        margin: 1px;
    }
    
    /* 表格 - 简洁设计 */
    QTableWidget {
        background: #333333;
        alternate-background-color: #3a3a3a;
        selection-background-color: #555555;
        border: 1px solid #666666;
        gridline-color: #555555;
        color: #ffffff;
        border-radius: 6px;
    }
    
    QTableWidget::item {
        padding: 8px;
        border-bottom: 1px solid #555555;
        border-right: 1px solid #555555;
    }
    
    QTableWidget::item:selected {
        background: #555555;
        color: #ffffff;
    }
    
    QTableWidget::item:hover {
        background: #444444;
    }
    
    QHeaderView::section {
        background: #404040;
        padding: 8px;
        border: 1px solid #666666;
        font-weight: bold;
        color: #ffffff;
        font-size: 9pt;
    }
    
    QHeaderView::section:hover {
        background: #505050;
    }
    
    /* 标签 */
    QLabel {
        background: transparent;
        color: #ffffff;
        font-size: 9pt;
    }
    
    QLabel[class="title"] {
        background: transparent;
        color: #ffffff;
        font-size: 12pt;
        font-weight: bold;
    }
    
    QLabel[class="subtitle"] {
        background: transparent;
        color: #cccccc;
        font-size: 10pt;
        font-weight: bold;
    }
    
    /* 输入框 */
    QLineEdit {
        background: #404040;
        border: 1px solid #666666;
        border-radius: 4px;
        padding: 6px;
        color: #ffffff;
        font-size: 9pt;
    }
    
    QLineEdit:focus {
        border-color: #888888;
    }
    
    /* 下拉框 */
    QComboBox {
        background: #404040;
        border: 1px solid #666666;
        border-radius: 4px;
        padding: 6px;
        color: #ffffff;
        font-size: 9pt;
    }
    
    QComboBox::drop-down {
        border: none;
        background: transparent;
    }
    
    QComboBox::down-arrow {
        image: none;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #888888;
        margin-right: 8px;
    }
    
    QComboBox QAbstractItemView {
        background: #404040;
        border: 1px solid #666666;
        selection-background-color: #555555;
        color: #ffffff;
    }
    
    /* 滚动条 - 简洁设计 */
    QScrollBar:vertical {
        background: #404040;
        width: 12px;
        border-radius: 6px;
        border: 1px solid #666666;
    }
    
    QScrollBar::handle:vertical {
        background: #666666;
        border-radius: 5px;
        min-height: 20px;
        margin: 2px;
    }
    
    QScrollBar::handle:vertical:hover {
        background: #777777;
    }
    
    QScrollBar::add-line:vertical,
    QScrollBar::sub-line:vertical {
        height: 0px;
    }
    
    QScrollBar:horizontal {
        background: #404040;
        height: 12px;
        border-radius: 6px;
        border: 1px solid #666666;
    }
    
    QScrollBar::handle:horizontal {
        background: #666666;
        border-radius: 5px;
        min-width: 20px;
        margin: 2px;
    }
    
    QScrollBar::handle:horizontal:hover {
        background: #777777;
    }
    
    QScrollBar::add-line:horizontal,
    QScrollBar::sub-line:horizontal {
        width: 0px;
    }
    
    /* 分割器 */
    QSplitter::handle {
        background: #666666;
        border-radius: 2px;
    }
    
    QSplitter::handle:hover {
        background: #777777;
    }
    
    /* 消息框 */
    QMessageBox {
        background: #2b2b2b;
        color: #ffffff;
        border: 1px solid #666666;
        border-radius: 6px;
    }
    
    QMessageBox QPushButton {
        min-width: 80px;
        min-height: 25px;
    }
    """
